package com.justech.tcp.server;

import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelPipeline;
import io.netty.channel.socket.SocketChannel;


/**
 * @ClassName
 * @Author: xiaofeng.yang
 * @Date: Create in 15:33 2019/11/29
 * @Description : TODO
 * @Version: 1.0
 */
public class SimpleChannelInitializer extends ChannelInitializer<SocketChannel> {


    protected void initChannel(SocketChannel socketChannel) throws Exception {
        ChannelPipeline channelPipeline = socketChannel.pipeline();
        channelPipeline.addLast(new SimpleChannelHandler());
    }
}
